package com.hhck.controller;

import com.hhck.entity.Result;
import com.hhck.service.AuthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/auth")
public class AuthController {

    @Autowired
    private AuthService authService;

    /**
     * 查询所有权限菜单树
     */
    @GetMapping("/auth-tree")
    public Result authTree() {
        return Result.ok(authService.queryAllAuthTree());
    }

}

